<?php
class General_Forms extends General_Db_Table {

	protected $_name = 'general_form';
	protected $_primary = 'form_id';
	protected $_rowClass = 'General_Form';

	protected $_dependentTables = array('General_Form_Elements');

	/**
	 * Get a form by name
	 *
	 * @param string $form_name
	 * @return General_Form|boolean
	 */
	public function findByName($form_name) {
		$query = $this->select()->where('form_name = ? ', $form_name);
		return $this->fetchRow($query);
	}

}
?>